<?php

class Webmix_Model_Webmix extends Core_Model_Item_Abstract {
    const WEBMIX_TYPE_SYSTEM = 'system';
    const WEBMIX_TYPE_USER = 'user';
    
    
  public function getCountry(){
	return Engine_Api::_()->getItem('webmix_country', $this->country_id);
  }    
  
  public function getWebmixIdRender(){
        if(!empty($this->parent_id)) return $this->parent_id;
        return $this->webmix_id;
  }
    
    
}